﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<iss.sg4210.se18.team6s.jass.DAL.Event>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Fields</legend>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Name) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Name) %>
            <%: Html.ValidationMessageFor(model => model.Name) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Description) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Description) %>
            <%: Html.ValidationMessageFor(model => model.Description) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Date) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Date, String.Format("{0:g}", Model.Date)) %>
            <%: Html.ValidationMessageFor(model => model.Date) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Details) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Details) %>
            <%: Html.ValidationMessageFor(model => model.Details) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Price) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Price, String.Format("{0:F}", Model.Price)) %>
            <%: Html.ValidationMessageFor(model => model.Price) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Contact) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Contact) %>
            <%: Html.ValidationMessageFor(model => model.Contact) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Objectives) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Objectives) %>
            <%: Html.ValidationMessageFor(model => model.Objectives) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Outline) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.Outline) %>
            <%: Html.ValidationMessageFor(model => model.Outline) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Facilitator) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Facilitator) %>
            <%: Html.ValidationMessageFor(model => model.Facilitator) %>
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
    <script type="text/javascript">
        $(function () {
            $("#Date").datepicker({
                altField: "#StartDate",
                altFormat: "DD, d MM, yy"
            });
        });
    </script>
</asp:Content>
